package com.gjintel.business.dbmanage.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gjintel.business.dbmanage.dao.IDataBaseManagerDao;
import com.gjintel.sdk.base.dao.HibernateGenericDAO;
@Repository
public class DataBaseManagerDaoImpl extends HibernateGenericDAO implements IDataBaseManagerDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<Object> getAllTableNames(String schema) {
		String sql = "select TABLE_NAME from information_schema.tables where TABLE_SCHEMA = ?";
		return this.findBySql(sql, new Object[]{schema});
	}
	
}
